home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 4 / MacMania 4.toast / / Tools&Utilities / unshar-19 / unshar.make < prev   
Text File  |  1995-07-22  |  3KB  |  100 lines

  1. #
  2. #    File:        unshar.make
  3. #
  4. #    Contains:    Makefile to build unshar tool
  5. #
  6. #    Written by:    Sak Wathanasin
  7. #                178 Wainbody Ave South
  8. #                Coventry CV3 6BX
  9. #                UK
  10. #    Phone:        +44 203 419996
  11. #    E-mail:        sw@network-analysis-ltd.co.uk
  12. #
  13. #    Copyright:    Public Domain
  14. #
  15. #    Change History (most recent first):
  16. #
  17. #    <4>            21/07/95    sw        Add cmds for MW compiler/linker
  18. #    <3>            30/06/95    sw        Build PPC-native tool
  19. #    <2>              3/2/91    sw        Change link libs for MPW 3.2
  20. #    <1>              6/7/90      sw        Created base version
  21. #
  22. #    To Do:
  23. #
  24. VERSION    = 1.9
  25. OBJECTS = unshar.c.o
  26.  
  27. SymOptions    =    -sym off
  28. SymOpt        =    {SymOptions}
  29. COptions    =    -r {SymOpt} -mbg full  -d MPW 
  30.  
  31. # The following is for Metrowerks
  32. PPCC        = MWCPPC
  33. PPCLink        = MWLinkPPC
  34. PPCCOptions    =    -AppleExt On {SymOpt} -opt l4 -d MPW -d REG=register
  35. StdLibs =    ∂
  36.             CWMPWGlue.cp.x ∂
  37.             "{MWPPCLibraries}"MWStdCRuntime.Lib ∂
  38.             "{MWPPCLibraries}"InterfaceLib   ∂
  39.             "{MWPPCLibraries}ANSI (NL) C.PPC.Lib" ∂
  40.             "{MWPPCLibraries}"StdCLib ∂
  41.             "{MWPPCLibraries}MathLib" ∂
  42.             "{MWPPCLibraries}"PPCToolLibs.o
  43.  
  44. # The following is for MrC
  45. # PPCCOptions=    -AppleExt On {SymOpt} -opt speed -d MPW -d REG=register
  46. # PPPC        = PPCC
  47. # PPCLink    = PPCLink
  48. # StdLibs    =    "{PPCLibraries}"StdCRuntime.o ∂
  49. #               "{PPCLibraries}"StdCLib.xcoff ∂
  50. #              "{PPCLibraries}"InterfaceLib.xcoff ∂
  51. #             "{PPCLibraries}"Mathlib.xcoff ∂
  52. #             "{PPCLibraries}"PPCCRuntime.o ∂
  53. #             "{PPCLibraries}"PPCToolLibs.o
  54.  
  55. .c.x    ƒ    .c
  56.     {PPCC} {Default}.c -o {Default}.c.x {PPCCOptions}
  57.  
  58. # The following only needed for MrC builds
  59. # The "evaluate" stuff in the MakePEF command is simply a way
  60. # of specifying version 1.1a3 of the StdCLib library.  (The
  61. # version number format is the same as a 'vers' resource.) The
  62. # library version number must be specified to ensure that the native
  63. # version of the tool does not use the broken StdCLib in ROM.
  64. # unshar        ƒƒ    unshar.xcoff
  65. #      MakePEF unshar.xcoff -o unshar -ft MPST -fc 'MPS ' ∂
  66. #          -l InterfaceLib.xcoff=InterfaceLib ∂
  67. #          -l "StdCLib.xcoff=StdCLib#`evaluate 0x01104003`"
  68. #      if "{SymOpt}" =~ /-sym ≈[NnUu]+≈/
  69. #          MakeSym -w unshar.xcoff -o unshar.xSYM
  70. #      End
  71. # unshar.xcoff        ƒƒ    unshar.c.x
  72. unshar                ƒƒ    unshar.c.x CWMPWGlue.cp.x
  73.     {PPCLink} {SymOpt} -d unshar.c.x ∂
  74.         {StdLibs} ∂
  75.         -o {Targ}
  76.  
  77. # The 68K part
  78. unshar ƒƒ unshar.make {OBJECTS}
  79.     Link -d -c 'MPS ' -t MPST {SymOpt} -mf ∂
  80.         {OBJECTS} ∂
  81.         "{Libraries}"Stubs.o ∂
  82.         "{Libraries}"Runtime.o ∂
  83.         "{Libraries}"Interface.o ∂
  84.         "{CLibraries}"StdClib.o ∂
  85.         "{Libraries}"ToolLibs.o ∂
  86.         -o unshar
  87.  
  88. unshar    ƒƒ    GenericCFRG.r
  89.     Rez {NewerDeps} -o unshar -append -d APPNAME=∂"unshar∂" 
  90.  
  91. unshar    ƒƒ    unshar.c unshar.make
  92.     SetVersion -t 'vers' -i 1 -version "{VERSION}" unshar
  93.     SetFile -m . -c 'MPS ' -t MPST unshar
  94.  
  95. CWMPWGlue.cp.x    ƒ CWMPWGlue.cp
  96.     {PPCC} CWMPWGlue.cp -sym on -o CWMPWGlue.cp.x
  97.  
  98.